<?php

namespace Controller\Message;

class Lists extends \Controller\Base {

    public function actionIndex() {
        $this->setMenuPath('Message', 'Lists');
        $pager = new \Lib\Core\Pager();
        $pager->pageSize = 10;
        $pager->currentPage = $this->getInt('page', 1);
        $info = \Business\Message::instance()->getMessage($pager);
        $this->assign('info', $info);
        $this->assign('pager', $pager);
        $this->display();
    }
}